@import url('https://fonts.loli.net/css?family=Noto+Sans+SC:400,700&display=swap');

:root {
  --primary-color: #1B263B; /* Rich deep blue for base elements */
  --secondary-color: #00A8E8; /* Futuristic cyan for highlights */
  --accent-color: #FF007F; /* Neon magenta for striking accents */
  --bg-color: #0a0a1a; /* Kept dark near-black for sci-fi aesthetic */
  --text-color: #F5F6F5; /* Warm off-white for readability */
  --section-gap: 180px;
  --divider-height: 8px;
  text-bg: rgba(255, 255, 255, 0.08);
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: linear-gradient(135deg, #12122A 0%, #1C2526 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* 全局元素样式 */
.section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.text-container {
  padding: 2rem;
  background: rgba(27, 38, 59, 0.2); /* Updated to match --primary-color */
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 导航样式 */
nav {
  transition: background-color 0.3s ease;
}

.nav-item {
  position: relative;
  transition: all 0.3s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item:hover::after {
  width: 100%;
}

/* 装饰元素样式 */
.section-top-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--divider-height);
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  opacity: 0.5;
}

.section-bottom-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--divider-height);
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--primary-color));
  opacity: 0.5;
}

/* 粒子特效容器 */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 下箭头样式 */
.scroll-down-arrow {
  width: 30px;
  height: 30px;
  border-right: 3px solid var(--secondary-color); /* Updated to cyan */
  border-bottom: 3px solid var(--secondary-color);
  transform: rotate(45deg);
  margin-top: 30px;
  animation: arrowBlink 2s infinite;
}

@keyframes arrowBlink {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

.sidebar {
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) #2d3748; /* Updated scrollbar thumb to cyan */
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: #2d3748;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--secondary-color); /* Updated to cyan */
  border-radius: 4px;
}

.sidebar-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-card {
  background: linear-gradient(to bottom right, rgba(27, 38, 59, 0.1), rgba(0, 168, 232, 0.05)); /* Updated to primary and secondary colors */
  backdrop-filter: blur(10px);
}

.active-item {
  background: rgba(0, 168, 232, 0.4); /* Updated to darker cyan */
  border-left: 3px solid var(--secondary-color); /* Updated to cyan */
}

.category-title {
  transition: all 0.3s ease;
}

.category-title:hover {
  background: rgba(0, 168, 232, 0.3); /* Updated to cyan */
}

.subcategory {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.subcategory.show {
  max-height: 1000px;
}

.rotate-90 {
  transform: rotate(90deg);
}

/* 新作预告轮播样式 */
.upcoming-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  background: rgba(27, 38, 59, 0.3); /* Updated to primary color */
  border: 1px solid rgba(0, 168, 232, 0.2); /* Updated to cyan */
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(27, 38, 59, 0.7); /* Updated to primary color */
  color: var(--text-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 5;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 168, 232, 0.7); /* Updated to cyan */
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* 社交媒体区域样式 */
#social {
  background: rgba(27, 38, 59, 0.2); /* Updated to primary color */
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 168, 232, 0.2); /* Updated to cyan */
  border-bottom: 1px solid rgba(0, 168, 232, 0.2);
}

.social-icon {
  display: inline-block;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(0, 168, 232, 0.5); /* Updated to cyan */
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.2);
  text-shadow: 0 0 15px rgba(0, 168, 232, 0.8); /* Updated to cyan */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
  }

  .social-icon {
    font-size: 3rem !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 32px;
    height: 32px;
  }

  .social-icon {
    font-size: 2.5rem !important;
  }
}

/* Pulse animation for click feedback */
.pulse {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 路由切换动画 */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}